import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.time.temporal.ChronoUnit;
import java.util.Comparator;
import java.util.List;

public class Main {


    private int aa;

    static {
        System.out.println("--------");
        System.out.println();
    }

    public static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void main(String[] args) throws CloneNotSupportedException {

        List<String > list =null;


        System.out.println(LocalDateTime.now().toEpochSecond(ZoneOffset.of("+8")));


        // int a[] = new int[]{2, 0, 1, 3, 5, 9, 6, 4, 7, 8};

//        for (int i = 0; i < a.length - 1; i++) {
//            int k = i;
//            for (int j = i + 1; j < a.length; j++) {
//                if (a[k]>a[j] ){
//                    k=j;
//                }
//            }
//            if(i!=k){
//                int temp=a[i];
//                a[i]=a[k];
//                a[k]=temp;
//            }
//        }

       /* for (int i = 0; i < a.length - 1; i++) {
            for (int j = 0; j < a.length - 1 - i; j++) {
                if (a[j] > a[j + 1]) {
                    int temp = a[j];
                    a[j] = a[j + 1];
                    a[j + 1] = temp;
                }

            }
        }*/

/*

        int c = 1;
        int b = c += 1;
        System.out.println(2.0 - 1.1);
*/


        //只能读不能操作
//        Map<Object, Object> map = Collections.unmodifiableMap(new HashMap<>());
//        Set<Object> set = Collections.unmodifiableSet(new HashSet<>());
//        List<Object> list = Collections.unmodifiableList(new ArrayList<String>());





        /*Map<String,String> map=new HashMap<>();

        Set<Map.Entry<String, String>> entries = map.entrySet();
        for (Map.Entry<String, String> t: entries
             ) {
            t.getKey();
            t.getValue();
        }*/


    }


    public static void test() {
        Student student = new Student();
        DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyyMMdd");
        LocalDate startDay = LocalDate.of(2022, 01, 01);
        LocalDate endDay = LocalDate.of(2022, 01, 05);
        long daybBetween = ChronoUnit.DAYS.between(startDay, endDay);
        System.out.println(dtf.format(startDay));
        System.out.println(dtf.format(endDay));
        System.out.println(daybBetween);

        System.out.println("=================");

        String s1 = "select * from gp_history";
        String s2 = " where code in ('603000','603001','603002')";
        for (long i = 0; i <= daybBetween; i++) {
            LocalDate day = startDay.plusDays(i);
            String s3 = dtf.format(day);
            if (i == daybBetween) {
                String result = s1 + s3 + s2;
                System.out.println(result);
            } else {
                String result = s1 + s3 + s2 + " union all";
                System.out.println(result);
            }
        }
    }

}

class Student implements Comparator<Student> {
    private String name;


    public Student() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public int compareTo(Student o) {
        return 0;
    }

    @Override
    public int compare(Student o1, Student o2) {
        return 0;
    }
}

class A implements Cloneable {
    public A() {
        System.out.println("A");
    }

    public void t1() {
        System.out.println("A t1");
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        A a = (A) super.clone();
        return a;
    }
}

class B extends A {
    public B() {

        System.out.println("B");
    }

}

interface q {

}

interface bb {

}

interface c extends q, bb {

}








